Fixed memory block count display
Modified storepic to trigger event instead of calling savepic function directly