Added image pre-loading support