Fix image display issue for development and production