Alternatively, you can store your images as resources (project / resources and images) and then use this function to load the images from the resource:
procedure LoadImageFromResource(ResourceName : String; TargetBitmap : TBitmap);
var
rStream : TResourceStream;
begin
If TargetBitmap <> nil then
Begin
Try
rStream := TResourceStream.Create(hInstance,ResourceName,RT_RCDATA);
Except
rStream := nil
End;
if rStream <> nil then
Begin
Try
TargetBitmap.LoadFromStream(rStream);
Finally
rStream.Free;
End;
End;
End;
end;
That way you don't care about paths.