fixed image loader to allow the number 0
working on holding state after page refresh