minor fix to gallery image display and loading image