Another Dynamic Image Border

If you tell the boarder to resize to roughly the same proportions of the image then this should eliminate that problem e.g telling the _x & _y position with height and width. Would it be easier for a boarder not to re-size/ instead do a batch conversion in photoshop (or what ever image editing software you have) to the same sizes this can solve another problem. As for the loading bar im afraid i cannot help you in that.